<?php

class online extends top{ 

	function __construct(){ 
		parent::__construct(); 
	}

	function intro(){ 

	}
	function date(){ 
		$this->detail_a = "date_detail"; 
		$this->result = array('article'=>array($this->result['article'][0]));
		$this->display("tpl/online_index.html");
	}
	function file(){ 
		$this->detail_a = "file_detail"; 
		$this->result = array('article'=>array($this->result['article'][1]));
		$this->display("tpl/online_index.html");
	}
	function date_detail(){

		$id = $_GET["id"];
		$this->result = spClass("m_article")->find(array("id"=>$id));
		$this->display("tpl/online_detail.html");
	}
	function file_detail(){

		$id = $_GET["id"];
		$this->result = spClass("m_article")->find(array("id"=>$id));
		$this->display("tpl/online_detail.html");
	}
}
